package com.hb.easyexcel.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.util.Date;

@Data
public class ExcelStudentData {

    @ExcelProperty(value = "姓名",index = 2)
    private String name;

    @DateTimeFormat("yyyy年MM月dd日")
    @ExcelProperty(value = "生日",index = 3)
    private Date birthday;

    @ExcelProperty(value = "薪资",index = 4)
    private Double salary;

    @ExcelIgnore
    private String password;
}
